<!doctype html>
<html lang="en">
<head>
    @include('web.layout.head')
    <link rel="stylesheet" href="{{asset('/css/web/user/prove_release.css')}}">
    <script src="{{asset('/js/web/frame/jedate/jquery.jedate.js')}}"></script>
    <link rel="stylesheet" href="{{asset('/js/web/frame/jedate/skin/jedate.css')}}">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
@include('web.layout.header')
@include('web.layout.user_tab')
<div class="base_member_content">
    <div class="w1200">
      @include('web.layout.seller_nav')
      <div class="right fr">
        <div class="marryreal">
          <div class="name" style="height: 40px;border-bottom: 1px dashed #ccc;">
            <span class="goodsfabu">我的配单</span>
          </div>
          <div class="marryst" style="border:0;padding: 18px 0;margin-top:0;">
            <form action="{{URL::current()}}" method="get">
                <select name="single_state" id="state" style="width:148px;margin-right: 18px;">
                  <option value="">配单状态</option>
                  <option value="0">已首报</option>
                  <option value="1">待付款</option>
                  <option value="2">已关闭</option>
                </select>
                <input name="updated_at[start]" class="datainp" id="inpstart" type="text" placeholder="开始日期" readonly="" value="">
                <input name="updated_at[end]" class="datainp" id="inpend" type="text" placeholder="结束日期" readonly="" value="">
                <input type="text"  class="ssearch" id="phone" name="goods_id" placeholder="手机号/配单号" value="{{request('goods_id')}}" style="margin-left: 18px;margin-right:18px;">
                <select name="is_for_sort" id="sort" style="width:148px;">
                  <option value="">选择排序方式</option>
                  <option value="1" @if(request('is_for_sort','') == '1') selected @endif>订单总价由高到低</option>
                  <option value="0"  @if(request('is_for_sort','') == '0') selected @endif>订单总价由低到高</option>
                  <option value="2"  @if(request('is_for_sort','') == '0') selected @endif>反馈信息优先</option>
                </select>
                <input type="submit" class="buttonn" value="查询">
            </form>
          </div>
          <div style="display:none">
            <input type="hidden" name="_scfs" value="ca350fa4d74c3b6d1640990f75488f06"/>
          </div>
          <div class="table list" style="border: 1px solid #e6e6e6;border-bottom:0;">
              <table>
                  <thead>
                    <tr style="border-bottom: 1px solid #e6e6e6;">
                        <th width="40"></th>
                        <th width="120">配单号</th>
                        <th width="200">销售方联系</th>
                        <th width="100">总费用</th>
                        <th width="150">时间</th>
                        <th width="150">状态</th>
                        <th>操作</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr>
                        <td><input type="checkbox" name="id[]" value=""></td>
                        <td>EPD85415211558842XE</td>
                        <td>1507541209432 <br>王小五</td>
                        <td style="color:#ff7a00;">¥1200.00 </td>
                        <td>2017/08/02 <br>13:48:49</td>
                        <td>已查看</td>
                        <td><a href="">未查看</a></td>
                    </tr>
                    <tr>
                        <td><input type="checkbox" name="id[]" value=""></td>
                        <td>EPD85415211558842XE</td>
                        <td>1507541209432 <br>王小五</td>
                        <td style="color:#ff7a00;">¥1200.00 </td>
                        <td>2017/08/02 <br>13:48:49</td>
                        <td>已查看</td>
                        <td><a href="">已查看</a></td>
                    </tr>
                    <tr>
                        <td><input type="checkbox" name="id[]" value=""></td>
                        <td>EPD85415211558842XE</td>
                        <td>1507541209432 <br>王小五</td>
                        <td style="color:#ff7a00;">¥1200.00 </td>
                        <td>2017/08/02 <br>13:48:49</td>
                        <td>已查看</td>
                        <td><a href="">已关闭</a></td>
                    </tr>
                  </tbody>
              </table>
          </div>
          <div class="page">
                 
          </div>
        </div>
      </div>
    </div>
</div>
@include('web.layout.footer')
<script type="text/javascript">
  var start = {
      format: 'YYYY-MM-DD hh:mm',
      minDate: '2014-06-16 23:59:59', //设定最小日期为当前日期
      //festival:true,
      maxDate: $.nowDate({DD:0}), //最大日期
      choosefun: function(elem,datas){
          end.minDate = datas; //开始日选好后，重置结束日的最小日期
          endDates();
      },
      okfun:function (elem,datas) {
          alert(datas)
      }
  };
  var end = {
      format: 'YYYY-MM-DD hh:mm',
      minDate: $.nowDate({DD:0}), //设定最小日期为当前日期
      //festival:true,
      maxDate: '2099-06-16 23:59:59', //最大日期
      choosefun: function(elem,datas){
          start.maxDate = datas; //将结束日的初始值设定为开始日的最大日期
      }
  };
  function endDates() {
      end.trigger = false;
      $("#inpend").jeDate(end);
  }
  $("#inpstart").jeDate(start);
  $("#inpend").jeDate(end);

  $(function(){
      //日期选择获取的值
      $(".buttonn").click(function(){
          console.log($(".marryst #state").val());
          console.log($("#phone").val());
          console.log($("#inpstart").val());
          console.log($("#inpend").val());
          console.log($(".marryst #sort").val());
      })
  })


  function doAction(params,url){
      $.ajax({
          url: url,
          type: 'post',
          dataType: 'json',
          data: params,
          success:function (data) {
              if (data.code == 0) {
                layer.alert('已提交成功',{
                    icon: 1
                },function () {
                    location.reload();
                });
              }else{
                  layer.alert('操作失败',{icon: 1});
              }
          }
      })
  }
</script>
</body>
</html>